# Contributor: Ed Robinson <ed+alpine@reevoo.com>
# Maintainer: Ed Robinson <ed+alpine@reevoo.com>
pkgname=detenc
pkgver=2.0.0
pkgrel=6
pkgdesc="A lightweight, low-memory character encoding detector"
url="https://github.com/reevoo/detenc"
arch="all"
license="MIT"
makedepends="ruby-rake ruby-minitest"
source="$pkgname-$pkgver.tar.gz::https://github.com/reevoo/detenc/archive/v$pkgver.tar.gz
	minitest.patch
	"

build() {
	make
}

check() {
	make check
}

package() {
	mkdir -p "$pkgdir/usr"/bin
	make PREFIX="$pkgdir/usr" -C "$builddir" install
}

sha512sums="
b4c0dc71a699b2e30a345d641781bd58146be84a727e89dc9ef39da7ddb752659371ba8fc37b345c514b43f92723ef80c9bbe73c72a562a2729a1626ec3f53db  detenc-2.0.0.tar.gz
ebc1355df6b3649ca6616ee74f4423f8ad746ccc8efa54ff185fe524f6d60a4dbe6b0e72dac40abaf1e20f6e09785ab0d3041fc82dcb94594981ded107fffbcf  minitest.patch
"
